package com.zanglikun.activity.util;

/**
 * Activity 监听器接口
 * 用于监听 Activity 执行的各个生命周期
 */
public interface ActivityListener {
    default void onStart(ActivityContext context) {}
    default void onBefore(Activity activity, ActivityContext context) {}
    default void onAfter(Activity activity, ActivityContext context, Exception e) {}
    default void onError(Activity activity, ActivityContext context, Exception e) {}
    default void onComplete(ActivityContext context) {}
    default void onFailed(ActivityContext context, Exception e) {}
}